package com.guojian.http.handle.service;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServletResponse;

import org.eclipse.jetty.http.HttpHeader;

import com.guojian.http.handle.HttpJettyServletResponseWrapper;

public class HttpJettyAfterHandle {

	//private static final List<AbstractHandler> afterHandleList = Lists.newArrayList();

	static {
		//afterHandleList.add(e)
	}

	public void handleResponse(HttpServletResponse response) throws IOException, ServletException {
		response.setHeader(HttpHeader.SERVER.asString(), "fast-server(666)");

		if (response instanceof HttpJettyServletResponseWrapper) {
			HttpJettyServletResponseWrapper jettyResponse = (HttpJettyServletResponseWrapper) response;
			jettyResponse.writeResponse();
		}
		
	}

}
